package utils;

import java.util.UUID;
//UUID工具类
public class UUIDUtils {
    //随机生成id
	public static String getId() {
		return UUID.randomUUID().toString().replace("-", "").toUpperCase();
	}

	public static String getUUID64() {
		return getId() + getId();
	}
	//生成随机码
	public static String getCode() {
		return getId();
	}
    //测试
	public static void main(String[] args) {
		 System.out.println(getId());
		 System.out.println(getUUID64());
		 System.out.println(getCode());
	}
}
